import Vue from "vue";
import Router from "vue-router";
Vue.use(Router);

const router = new Router({
  mode: "hash",
  routes: [
    {
      path: "/",
      name: "homeIndex",
      // component: test1
      component: () => import("@/views/page/index/index.vue"),
      children: [
        {
          path: "",
          redirect: "home"
        },
        {
          path: "/home",
          name: "home",
          component: resolve => require(["@/views/page/index/index.vue"], resolve)
        },
      ]
    },
  ],
});
export default router;
